package cn.itsource.org.mapper;

import cn.itsource.basic.mapper.BaseMapper;
import cn.itsource.org.domain.Department;

import java.util.List;

/**
 * 部门mapper层
 */
public interface DepartmentMapper extends BaseMapper<Department>{

    //通过父级部门id查询下级部门
    List<Department> findByParentId(Long id);
    //查询一二级部门
    List<Department> findOneAndTwoLevel();
}
